﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraReports.UserDesigner;
using DoAnQuamLy.Object;
using DoAnQuamLy.Controller;
using DoAnQuamLy.Reports;

namespace DoAnQuamLy.GUI
{
    public partial class ReportPhieuChi : DevExpress.XtraEditors.XtraForm
    {
        public ReportPhieuChi()
        {
            InitializeComponent();
        }

        InPhieuChi x = new InPhieuChi();
        private void ReportPhieuChi_Load(object sender, EventArgs e)
        {
            xrDesignDockManager1.Initialize(xrDesignPanel1);
            xrDesignPanel1.OpenReport(x);
            xrDesignPanel1.SetCommandVisibility(ReportCommand.NewReport, CommandVisibility.None);
            xrDesignPanel1.SetCommandVisibility(ReportCommand.NewReportWizard, CommandVisibility.None);
            List<PhieuChiObject> dt = new PhieuChiController().DangKy();
            x.DataSource = dt;
        }
    }
}